Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

Some results & questions for ".js" files cause Web Syntax Error
~Fred Xanjumimarakoi 22.Oct.03 04:22 PM a Web browser
Domino Designer 6.0.2 CF2 Windows 2000


Here is what I have done...

In the subform where the menu code resides there is some pass-thru HTML:
<html>
<head>
</head>
<body>
<script type='text/javascript'>
function Go(){return}</script>
//<script type='text/javascript' src='HVMenu_Custom.js'></script>
//<script type='text/javascript' src='HVMenu_Code.js'></script>
</body>
</html>

I place this subform at the top of the forms that the menu is needed.

The form that worked did not have the "DBPath" and "Server_Name" fields on it. DBPath is a computed for display field set to:
"@ReplaceSubstring(@Subset(@DbName; -1); " " : "\\"; "+" : "/")"

Server_Name is a computed for display field that is set to itself: Server_Name.

The reason I used these fields is that I needed the "<base>" tag to correctly find the two (2) .js files I needed for the menu to work correctly.

The <base> tag was set in the HTML Head Content as:
"<base href=\"http://" + Server_Name + "/" + DBPath + "\" />"

However, I even set the <base> tag not to use variables and hard-coded the Server_Name and DBPath variables. The Menu would not appear, but the Syntax Error went away.

The settings above are from the article:
http://www.codestore.net/store.nsf/unid/EPSD-52UQZJ?OpenDocument

To get the Menu to work in every form correctly:
1. Removed DBPath and Server_Name fields
2. Set DBPath variable in HTML Head Content as:
DBPath := @ReplaceSubstring(@Subset(@DbName; -1); " " : "\\"; "+" : "/");
3. Removed "<base>" tag
4. Through Domino Designer, I previewed in Internet Explorer and they all worked

The only problem is now, when the Menu is used through the Frameset, the Home Page works because that is where the .js files are. When I open another form, we are back to square one: The Menu causes a Syntax Error or does not appear because it cannot reference/find those .js files.

So here is the dilemma:
Why does the Menu not appear when the "<base>" tag is referenced and then how do I reference the ".js" files for every document correctly if I cannot use the "<base>" tag?

Thanks!
Dan




".js" files cause Web Syntax Error (~Fred Xanjumima... 21.Oct.03)
. . RE: ".js" files cause Web Syntax Er... (~Justin Minlute... 21.Oct.03)
. . . . RE: ".js" files cause Web Syntax Er... (~Fred Xanjumima... 21.Oct.03)
. . . . . . RE: ".js" files cause Web Syntax Er... (~Justin Minlute... 21.Oct.03)
. . . . . . . . Some results & questions for ".js" ... (~Fred Xanjumima... 22.Oct.03)
. . . . . . . . . . Revisit: Some results & questions f... (~Fred Xanjumima... 4.Nov.03)
. . . . . . . . . . . . RE: Revisit: Some results & questio... (~Justin Minlute... 4.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS